<?php

namespace common\models;

use Yii;
use \common\models\base\ApiLog as BaseApiLog;

/**
 * This is the model class for table "api_log".
 */
class ApiLog extends BaseApiLog
{
    /**
     * @inheritdoc
     */
    public function rules()
    {
        return array_replace_recursive(parent::rules(),
	    [
            [['level', 'api_item_id'], 'integer'],
            [['api_item_id'], 'required'],
            [['log_time'], 'number'],
            [['prefix', 'message'], 'string'],
            [['category'], 'string', 'max' => 255],
            [['lock'], 'default', 'value' => '0'],
            [['lock'], 'mootensai\components\OptimisticLockValidator']
        ]);
    }
	
}
